﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace VSSnapIn
{
    public partial class BuildErrConfig : Form
    {
        public BuildErrConfig()
        {
            InitializeComponent();
        }

        private void btnTemplateDirSelect_Click(object sender, EventArgs e)
        {
            try
            {
                fbdTemplate.SelectedPath = txtTemplateLocation.Text;
            }
            catch
            {
                fbdTemplate.SelectedPath = "";
            }

            fbdTemplate.ShowDialog();
            txtTemplateLocation.Text = fbdTemplate.SelectedPath;
        }

        private void btnBODirSelect_Click(object sender, EventArgs e)
        {

            try
            {
                fdbObjects.SelectedPath = txtTemplateLocation.Text;
            }
            catch
            {
                fdbObjects.SelectedPath = "";
            }

            fdbObjects.ShowDialog();
            txtObjectsLocation.Text = fdbObjects.SelectedPath;
        }

        private void btnMgrDirSelect_Click(object sender, EventArgs e)
        {
            try
            {
                fdbManagers.SelectedPath = txtTemplateLocation.Text;
            }
            catch
            {
                fdbManagers.SelectedPath = "";
            }

            fdbManagers.ShowDialog();
            txtManagersLocation.Text = fdbManagers.SelectedPath;
        }


    }
}
